import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns

plt.rcParams['font.sans-serif'] = ['MicroSoft YaHei']

df = pd.read_table("./result/part-r-00000", names=['time', 'type', 'ds_id', 'value', 'dev_id'])
# sns.set(color_codes=True)
x = (df['time'] / 3600000 % 24 + 8) % 23
y = df['value']
sns.jointplot(x=x, y=y, data=df, kind="hex", gridsize=20)
plt.show()